package org.procrastinationapp.business.entities.user;

import java.util.Date;

import org.procrastinationapp.business.entities.BaseEntity;
import org.procrastinationapp.commons.utils.LangUtils;

public class User extends BaseEntity {
	private static final long serialVersionUID = 3257568390917667126L;
	private String login;
	private String firstName;
	private String lastName;
	private Date birthday;

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	/**
	 * @return Returns firstName and lastName
	 */
	public String getFullName() {
		return firstName + ' ' + lastName;
	}
}
